/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tanks.weapons;
import com.sun.lwuit.Image;
import tanks.Missiles.Missile;
import java.io.IOException;
import tanks.Tank;
/**
 *
 * @author Александр
 */
public class Gun extends Weapon
    {
        public Gun(Tank t)
        {
            reload = 10;
            tank = t;
            try {
                Gr = Image.createImage("/images/gun1.png");
            }
            catch(IOException ex){
                 ex.printStackTrace();
            }
            //Gr.SetResolution(game.Resolution, game.Resolution);
        }
        public void Fire()
        {
           game.Miss.addElement(new Missile(tank.Facing(), tank.CurrentCell));
        }
    }
